/**
 * 
 */
package com.nervytech.tutorcruise.profile.beans.builders;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.nervytech.tutorcruise.db.dao.model.User;
import com.nervytech.tutorcruise.db.service.interfaces.IUserService;
import com.nervytech.tutorcruise.profile.beans.TraineeProfileBean;
import com.nervytech.tutorcruise.profile.beans.UserBean;
import com.nervytech.tutorcruise.service.exception.TrainerCruiseServiceException;


/**
 * @author ADMIN
 *
 */
@Component("traineeProfileBeanBuilder")
public class TraineeProfileBeanBuilder implements IProfileBeanBuilder {
	
	@Autowired
	private IUserService usrService;

	/* (non-Javadoc)
	 * @see com.nervytech.tutorcruise.profile.beans.builders.IProfileBeanBuilder#getProfileBean()
	 */
	@Override
	public Object getProfileBean(long userId) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public <T extends UserBean> T getProfileBeanG(long userId)
			throws TrainerCruiseServiceException {
		
		
		User usr = usrService
				.getTraineeProfile(userId);
		
		TraineeProfileBean profileBean = new TraineeProfileBean();

		return (T)profileBean;
	}

}
